package com.demo.network.aio;

import com.demo.network.aio.client.Client;
import com.demo.network.aio.server.Server;

import java.util.Scanner;

public class AIOTest {

    public static void main(String[] args) throws Exception {
        Server.start();
        Thread.sleep(1000);
        Client.start();
        System.out.println("请输入请求消息: ");
        Scanner scanner = new Scanner(System.in);
        while (Client.sendMsg(scanner.nextLine())) ;
    }
}
